<?php
global $base_dir;
$base_dir='../../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件
?>
<?php
//接收参数
if(is_array($_GET))
{
	foreach($_GET as $key => $value)
	{
		$$key=$value;
	}
}
if($id=='')
{
	echo "参数不正确";
	die();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>充值日志</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
a:link {
	color: #0066CC;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #0066CC;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
}
body,td,th {
	font-size: 12px;
	color: 666666;
}
.red {color: #AA0000; font-weight:bold;}
.green {color: #00AA00; font-weight:bold;}
.date {color: #666666; }
-->
</style></head>

<body>
<table width="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#003366" align="center">
<?php
$tbl_name='log_recharge';
$tbl_key='id';
$pagesize=10;
$t=new Tbl_Act($tbl_name,$tbl_key);		//创建表对象
//$t->printsql=1;

//构建查询条件

$query_conv=" where mem_id='mem_id'";
$t->mem_id=$id;
$query_conv2=array('mem_id,=');
//计算记录数量
$rs_num=$t->RsCount($query_conv2);
$pages=ceil($rs_num/$pagesize);
$page = 0;
if($page>$pages)
{
	$page=$pages;
}
if($page<1)
{
	$page=1;
}
$limit1=($page-1)*$pagesize;
?>
<?=getRechargeList($id,$limit1,$pagesize)?>
</table>

<!-- 7caihu.com Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fb8797ecb21d1ccb839c35b190277a0cd' type='text/javascript'%3E%3C/script%3E"));

</script>
</body>
</html>
